package com.neuedu.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.neuedu.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 学生表
 * </p>
 *
 * @author wangyu
 * @since 2025-09-03
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("ums_student")
public class UmsStudent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public UmsStudent(Long id, Boolean active) {
        super(id);
        this.active = active;
    }

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 0)
    private String name;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号", index = 1)
    private String phone;

    /**
     * 电子信箱
     */
    @ExcelProperty(value = "电子信箱", index = 2)
    private String email;

    /**
     * 生日
     */
    @ExcelProperty(value = "生日", index = 3)
    private LocalDate birthday;

    /**
     * 头像
     */

    private String icon;

    /**
     * 毕业院校
     */
    @ExcelProperty(value = "毕业院校", index = 4)
    private String school;

    /**
     * 专业
     */
    @ExcelProperty(value = "专业", index = 5)
    private String major;

    /**
     * 学历
     */
    @ExcelProperty(value = "学历", index = 6)
    private String qualification;

    /**
     * 登录密码
     */
    @JsonIgnore
    private String password;

    /**
     * 状态
     */
    private Boolean active;
}
